export default {
    namespaced: true,
    state: {
        userinfo: {
            user: '',
            token: ''
        }
    },
    mutations: {
        //设置信息
        setUserinfo(state, payload) {
            state.userinfo = payload
        },
        //删除信息
        clearUserinfo(state) {
            state.userinfo = {
                user: '',
                token: ''
            }
        }
    },
    actions: {

    },
    getters: {

    }
}